bootm: Handle errors consistently
authorSimon Glass <[email protected]>
Wed, 10 Jul 2013 13:25:33 +0000 (09:25 -0400)
committerTom Rini <[email protected]>
Fri, 12 Jul 2013 21:16:37 +0000 (17:16 -0400)
commitb7a1d13462115d2cafb0a3ffcbdce48c2f78f06e
tree8b0e8e7bbc4652ed3b6d951fea642725d80f4dbf
parente3a5bbce4590fbe18daae51087cd5cf4d2246bb9
bootm: Handle errors consistently

A recent bootm fix left the error path incomplete. If CONFIG_TRACE is
set it may still not be a supported command, so cover that with the
unsupported subcommand print.  Once we handle BOOTM_STATE_OS_GO, we can
just move into the error handler itself, no need for a goto there.

Signed-off-by: Simon Glass <[email protected]>
[trini: Update slightly based on Simon's changes to also cover
CONFIG_TRACE/BOOTM_STATE_FAKE_OS_GO]
Signed-off-by: Tom Rini <[email protected]>
common/cmd_bootm.c